import {Component  } from "react";
import './list.css'
class List extends Component{

  render(){
    return(
      <div>
        {/* <h1>列表</h1> */}
        <div className="box">
        {this.props.list.map(item=>{
          return <div key={item.id} className='itemBox'>
            <div><img src={item.img} alt="" /></div>
            <div>{item.title}</div>
            <div>{item.source}</div>
            <div>{item.time}</div>
          </div>
        })}
       </div>
      </div>
    )
  }
}

export default List